package com.xiaoma.base.extend;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author maj
 * @ClassName Child
 * @Description
 * @date 2020-12-14 10:58
 */
public class Child extends Parent{

  public int i=30;

  public int returnMe(){
    return 300;
  }

  public static void main(String[] args) {
    /*Child child=new Child();
    Parent parent=new Child();
    System.out.println(parent.i+child.i);
    System.out.println(parent.returnMe()+child.returnMe());*/

    String str="CHG FLT FROM CA1406/04DEC20/Z/CTUPEK TO CA4105/03DEC20/Z/CTUPEK";
//    String str="fileNameCode-->_AD2467524284sd234.json";

    Pattern pattern=Pattern.compile("CHG\\s*FLT\\s*FROM");
    Matcher matcher = pattern.matcher(str);
    System.out.println(matcher.find());
 /*   if( matcher.find() ){
      // 包含前后的两个字符
      System.out.println(matcher.group());
      // 不包含前后的两个字符
      System.out.println( matcher.group(1) );
    }else{
      System.out.println(" 没有匹配到内容....");
    }*/

  }


}
